/* 全局样式 - 暗黑主题 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  background: #0a0e27;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1f3a;
}

::-webkit-scrollbar-thumb {
  background: #3d4466;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a5080;
}

/* 链接样式 */
a {
  color: #4a9eff;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #6bb3ff;
}

/* 卡片阴影效果 */
.card-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-shadow:hover {
  box-shadow: 0 6px 20px rgba(74, 158, 255, 0.2);
}

/* 渐变背景 */
.gradient-bg {
  background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
}

/* 霓虹效果 */
.neon-text {
  text-shadow: 0 0 10px rgba(74, 158, 255, 0.8), 0 0 20px rgba(74, 158, 255, 0.6),
    0 0 30px rgba(74, 158, 255, 0.4);
}

.neon-border {
  border: 1px solid rgba(74, 158, 255, 0.5);
  box-shadow: 0 0 10px rgba(74, 158, 255, 0.3), inset 0 0 10px rgba(74, 158, 255, 0.1);
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 代码块样式 */
pre {
  background: #1a1f3a;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
}

code {
  font-family: 'Courier New', Courier, monospace;
  color: #4a9eff;
}

